package day4;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 * @author oldliu
 * @since 1.0
 */
public class FathersDay {
    public static void main(String[] args) throws ParseException {
        int year=2018;
        String str=year+"-6 3";// 2018-6 3
        SimpleDateFormat df=new SimpleDateFormat("yyyy-MM W");
        Date parse = df.parse(str);
        Calendar c=Calendar.getInstance();
        c.setTime(parse);
        c.add(Calendar.DAY_OF_MONTH,7);
        System.out.println(c.getTime());

    }
}
